home *** CD-ROM | disk | FTP | other *** search
-
-
-
- GETUID(3) MINTLIB LIBRARY FUNCTIONS GETUID(3)
-
-
- N✓NA✓AM✓ME✓E
- getuid, geteuid, getgid, getegid - get real user, effec-
- tive user,
- real group and effec-
- tive group IDs
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <sys/types.h>
- #include <unistd.h>
-
- uid_t getuid(void);
-
- uit_t geteuid(void);
-
- gid_t getgid(void);
-
- gid_t getegid(void);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- getuid returns the real user ID of the calling process.
- geteuid returns the effective user ID of the calling pro-
- cess. getgid returns the real group ID of the calling
- process. getegid returns the effective group ID of the
- calling process.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- s✓se✓et✓tu✓ui✓id✓d(✓(3✓3)✓),✓, s✓se✓et✓tg✓gi✓id✓d(✓(3✓3)✓),✓, P✓Pg✓ge✓et✓tu✓ui✓id✓d(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓te✓eu✓ui✓id✓d(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓tg✓gi✓id✓d(✓(2✓2)✓),✓,
- P✓Pg✓ge✓et✓te✓eg✓gi✓id✓d(✓(2✓2)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- On UN*X systems, these calls have the type unsigned short,
- which is equal to uid_t and gid_t.
-
- When MiNT is not active, these calls are pretty bogus.
-
- Pgeteuid and Pgetegid have only been available since MiNT
- 0.95
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-